package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2023-06-27
 */
@Getter
@Setter
@TableName("app_coin_config")
@ApiModel(value = "AppCoinConfig对象", description = "")
public class AppCoinConfig extends Model<AppCoinConfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("币种名称")
    @TableField("coin")
    private String coin;
    @ApiModelProperty("汇率")
    @TableField("rate")
    private BigDecimal rate;

    @TableField("name")
    private String name;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
